if dir not exist mkdir python

40

if dir not exist mkdir python -

import os
if not os.path.exists('my_folder'):
    os.makedirs('my_folder')

Comments

Submit
0 Comments